﻿<%@ Page Title="View Note" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Note.aspx.cs" Inherits="AioNightly.Note" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

    <p>
        <asp:Button ID="bt_edititem" runat="server" CommandName="Edit Note" 
            Text="Edit Note" onclick="bt_edititem_Click"/>
        <asp:DropDownList ID="ddl_itemstate" Visible="False" runat="server">
            <asp:ListItem>Unchecked</asp:ListItem>
            <asp:ListItem>Verified</asp:ListItem>
            <asp:ListItem>Rejected</asp:ListItem>
        </asp:DropDownList>
    </p>

    <p>
        <asp:Label ID="lb_author" runat="server" Text="Somebody" Font-Bold="True" 
            Font-Size="Large"></asp:Label>
        <asp:Label ID="lb_item" runat="server" Text="None" Font-Size="Medium"></asp:Label>
    </p>

    <asp:TextBox ID="tb_edititem" runat="server" TextMode="MultiLine" 
                Height="80px" Width="600px" Visible="False" MaxLength="1000"></asp:TextBox>
    <p class="submitButton">
        <asp:Button ID="bt_submitedit" runat="server" Text="Submit" Visible="False" 
            onclick="bt_submitedit_Click" />
        <asp:Button ID="bt_canceledit" runat="server" Text="Cancel" Visible="False" 
            onclick="bt_canceledit_Click" />
        <asp:Button ID="bt_delitem" runat="server" Text="Delete" Visible="False"  
            ForeColor="Red" onclick="bt_delitem_Click" />
    </p>
    
    <p>
        <asp:FileUpload ID="fu_attach" runat="server" />
        <asp:Button ID="bt_addattach" runat="server" Text="Attach File" 
            onclick="bt_addattach_Click" />

        <asp:Repeater ID="rp_attach" runat="server" 
            onitemdatabound="rp_attach_ItemDataBound">
            <ItemTemplate>
                <asp:HyperLink ID="ht_attach" runat="server">HyperLink</asp:HyperLink>
                <br />
            </ItemTemplate>
        </asp:Repeater>
    </p>

    <div class="accountInfo">
        <asp:Repeater ID="rp_comment" runat="server" 
            onitemdatabound="rp_comment_ItemDataBound">
            <HeaderTemplate></HeaderTemplate>

            <ItemTemplate>
                <fieldset class="talk">
                    <legend>
                        <asp:Label ID="lb_author" runat="server" Text="Somebody"></asp:Label>
                    </legend>
                    <asp:Label ID="lb_comment" runat="server" Text="Label"></asp:Label>
            <!--
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                    </p>
                -->
                </fieldset>
            </ItemTemplate>

            <FooterTemplate></FooterTemplate>
        </asp:Repeater>
        
        <p>
            <asp:Label ID="lb_beforeadd" runat="server" Text="Comment can be added here." 
                Font-Bold="True" Font-Italic="True" Font-Size="Medium"></asp:Label>
        </p>
        <asp:TextBox ID="tb_addcomment" runat="server" TextMode="MultiLine" 
                Height="80px" Width="600px" MaxLength="1000"></asp:TextBox>

        <p class="submitButton">
            <asp:Button ID="bt_addcomment" runat="server" CommandName="Add Comment" 
                Text="Add Comment" onclick="bt_addcomment_Click"/>
        </p>
    </div>

</asp:Content>
